<?php
/**************************************************************************
 * Naanal PHP Framework, Simple, Efficient and Developer Friendly
 * Ver 3.0, Copyright (C) <2010>  <Tamil Amuthan. R>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ************************************************************************/
include_once(dirname(__FILE__)."/ClsLTokenizeBase.php");
include_once(dirname(__FILE__)."/ClsLStatement.php");
/**
 * Description of ClsBTokenize
 *
 * @author unicomtech
 */
class ClsLTokenize extends ClsNaanalLibrary
{
    private $objPHPStatement=null;
    public function __construct()
    {
        
    }
    public function loadFile($fileName)
    {
        $fileContent=file_get_contents($fileName);
        $this->loadContent($fileContent);
    }
    
    public function loadContent(&$fileContent)
    {
        $arrToken=token_get_all($fileContent);
        $this->loadToken($arrToken);
    }
    
    public function loadToken(&$arrToken)
    {
        $this->objPHPStatement = new ClsLStatement($arrToken);
    }
    public function &getPHPTokenizeObject()
    {
        return $this->objPHPStatement;
    }
}

?>
